package com.yt.mapper;

import com.yt.entity.Novel;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface NovelMapper {
    @Select("SELECT * FROM novel WHERE aid = #{aid}")
    List<Novel> getNovelsByAid(Integer aid);
}
